package com.itita.ww2.model.area;

import com.itita.ww2.enums.AreaEnum;

public class AreaCity extends BaseArea {

	public AreaCity(int blockId, int cityId) {
		super.setType(AreaEnum.CITY);
		this.blockId = blockId;
		this.cityId = cityId;
	}

	public int blockId; // 区域id
	public int cityId; // 城市id

	@Override
	public boolean equals(Object obj) {
		if (super.equals(obj)) {
			// 进一步判断两个id是否相等
			AreaCity ref = (AreaCity) obj;
			return ref.blockId == this.blockId && ref.cityId == this.cityId;
		}
		return false;
	}
}
